package com.xcx.minservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xcx.commoncore.entity.aclentity.AclUser;
import com.xcx.commoncore.request.miniorequest.GetUserFilesRequest;
import com.xcx.commonuntils.returnuntls.ReturnMessage;
import com.xcx.commoncore.entity.minioentity.FileSystem;
import com.xcx.commoncore.request.miniorequest.GetUserFileTypeRequest;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface MinioService extends IService<FileSystem> {


    ReturnMessage<Object> upload(MultipartFile file,String username,Integer source,Integer type);

//    ReturnMessage<Object> preview(String fileName);

    void download(String fileName, HttpServletResponse res);

    ReturnMessage<Object> remove(GetUserFileTypeRequest fileName);

    ReturnMessage<List<String>> uploads(MultipartFile[] files,String username);

//    ReturnMessage<List<FileSystem>> getUserFiles(GetUserFilesRequest request);
//
//    ReturnMessage<List<FileSystem>> getUserFilesByType(GetUserFileTypeRequest request);

    ReturnMessage<Object> previewByUserName(GetUserFileTypeRequest request);
}
